package reponse

import (
	"fmt"
	"time"
)

type JsonTime time.Time

func (j JsonTime) MarshalJSON() ([]byte, error) {
	var stmp = fmt.Sprintf("\"%s\"", time.Time(j).Format("2006-01-02"))
	return []byte(stmp), nil
}

type UserResponse struct {
	Id       int32  `json:"id"`
	NickName string `json:"nickname"`
	//Birthday string `json:"birthday"`
	Birthday   string `json:"birthday"`
	Sex        int32  `json:"sex"`
	Phone      string `json:"phone"`
	HeadImgUrl string `json:"headimgurl"`
}
